var http = require('http');
const config = require('./config').config;

var server = http.createServer(function(req, res)
{
    res.statusCode = 200;
    res.setHeader('Content-Type', 'text/plain');
    res.end('hello world');
});

server.listen(config.port, config.host, () => {
    console.log('server is running at 3000');
});